package com.tql.pandian.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tql.pandian.entity.PandianDataEntity;
import com.tql.pandian.entity.dto.PanDianDataDTO;
import com.tql.pandian.entity.dto.UpdatePanDianDataData;
import com.tql.pandian.entity.vo.BomListVo;
import com.tql.pandian.entity.vo.PanDianDataVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PandianDataMapper extends BaseMapper<PandianDataEntity> {

    int batchInsertPanDianData (List<PandianDataEntity> list);

    int deleteDataByIds(@Param("ids") List<String> ids);

    int deleteDataByCaseIdAndPid(UpdatePanDianDataData updatePanDianDataData);

    List<PanDianDataVo> selectPanDianDataList(PanDianDataDTO panDianDataDTO);

    List<BomListVo> selectBomLists(Long dishId);
}
